﻿using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;

namespace mtg_trader.Database.DbSets
{
    public sealed class Set
    {
        public Set()
        {
            Cards = new Collection<Card>();
        }

        [Key]
        public string Abbreviation { get; set; }

        public string Name { get; set; }

        public int Size { get; set; }

        public string MagicCardsInfoUri { get; set; }

        public Collection<Card> Cards { get; set; }

        public byte[] Logo { get; set; }

        public int Count { get { return Cards.Count; } }

    }
}